import {MyGameObject} from '/static/Javascript/MyGameObject/base.js'

export class GameMap extends MyGameObject{
    constructor(root){
        super();
        this.root=root;
        this.$canvas=$('<canvas width="1280" height="720" tabindex></canvas>');
        this.ctx=this.$canvas[0].getContext('2d');
        this.$canvas.focus();
    }

    start(){

    }

    update(){
        this.render();
    }

    render(){
        this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height);
    }
}